<?xml version="1.0" encoding="utf-8"?>
<!--
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
        MA 02110-1301, USA.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" omit-xml-declaration="yes"/>
	<xsl:template match="/">
		<table width="100%">
			<tr bgcolor="#CCCCCC">
				<td align="center"></td>
				<td align="center">#</td>
				<td align="center">Customer</td>
				<td align="center">Model</td>
				<td align="center">Serial Number</td>
				<td align="center">Inventory Number</td>
				<td align="center">Destination</td>
				<td align="center">Cooler Receipt Date</td>
				<td align="center">Repair Date</td>
				<td align="center">Dispatch Date</td>
			</tr>
			<xsl:for-each select="main/coolerinventory">
				<tr bgcolor="#EEEEEE">
					<xsl:if test="position() mod 2 = 0">
						<xsl:attribute name="bgcolor">#CCCCCC</xsl:attribute>
					</xsl:if>
					<td width="17" align="center">
						<img src="../../img/delete.png" title="return">
							<xsl:attribute name="onclick">
								javascript:returnCooler(<xsl:value-of select="id"/>);
							</xsl:attribute>
						</img>
					</td>
					<td align="center"><xsl:value-of select="position()"/></td>
					<td align="center"><xsl:value-of select="customer"/></td>
					<td align="center"><xsl:value-of select="model"/></td>
					<td align="center"><xsl:value-of select="snumber"/></td>
					<td align="center"><xsl:value-of select="inumber"/></td>
					<td align="center"><xsl:value-of select="destination"/></td>
					<td align="center"><xsl:value-of select="receipt_date"/></td>
					<td align="center"><xsl:value-of select="repaitdate"/></td>
					<td align="center"><xsl:value-of select="dispatchdate"/></td>
				</tr>
			</xsl:for-each>
		</table>
    </xsl:template>
</xsl:stylesheet>
